package chapter01

object Test18_NineToNine {
  def main(args: Array[String]): Unit = {
    for(i<- 1 to 9){
      for(j<-1 to i){
        print(s"${i}*${j}=${i*j}\t")
      }
      println()
    }
    for{i<- 1 to 9; j<-1 to i}{
      print(s"${i}*${j}=${i*j}\t")
      if(i==j) println()
    }
  }
}
